﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AdminSite.Master" Inherits="System.Web.Mvc.ViewPage<Veteran_cms.Models.menu_item>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
<%using (Html.BeginForm("CreateMenuItem", "ManageMenu", new { menu_id = Model.menu_id }, FormMethod.Post, new { enctype = "multipart/form-data", @class = "form", id = "validate" }))
    { %>
   <div style="float:right"><a href="<%=Url.Action("Details","ManageMenu", new {id = Model.menu_id}) %>" title="" class="backTo" style="margin: 5px;"><img src="../../images/adminSite/icons/prev.png" alt="" class="icon" /><span>Trở về</span></a></div>
        <%if (ViewData["Msg"] != null)
          {%>
          <div class="nNote nSuccess hideit">
            <p><strong><%=ViewData["Msg"]%></strong></p>
        </div>
        <%} %>
          <div></div>
    <div class="widget">
            <div class="title"><img src="../../images/adminSite/icons/dark/pencil.png" alt="" class="titleIcon" /><h6>Sub Menu</h6></div>
                <div class="formRow">
                 <label>Tên:<span class="req">*</span></label>
                    <div class="formRight"><%:Html.TextBoxFor(model => model.label, new { @class = "validate[required]", id = "req" })%></div>
                    <div class="clear"></div>
                </div>
                <div class="formRow">
                <label>Thuộc Menu:<span class="req"></span></label>
                <div class="formRight"><%:Html.DropDownListFor(model => model.parent_id,ViewData["parent_id"] as SelectList, new { @class = "validate[required]", id = "req" })%></div>
                <div class="clear"></div>
            </div>
            <div class="formRow">
                 <label>Liên kết:<span class="req">*</span></label>
                    <div class="formRight"><%:Html.TextBoxFor(model => model.link, new { @class = "validate[required]", id = "req" })%></div>
                    <div class="clear"></div>
                </div>
             <div class="formRow">
                 <label>Vị trí:<span class="req">*</span></label>
                    <div class="formRight"><%:Html.TextBoxFor(model => model.sort_order, new { @class = "validate[required,custom[onlyNumberSp]", id = "req" })%></div>
                    <div class="clear"></div>
                </div>
            <div class="formSubmit"><input type="submit" value="Lưu" class="blueB" /></div>
            <div class="clear"></div>
            <div><%:Html.HiddenFor(model => model.menu_id)%></div>
        </div>
 <%} %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="TitleAreaPlaceHolder" runat="server">
</asp:Content>
